/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.taxigang.shared;

import java.io.Serializable;
import java.util.Date;

public class AwardInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    private String awardText;    
    private Date date;
    private String authorName;
    private int points;

    public AwardInfo() {}
        
    public AwardInfo(String awardText,Date date,String authorName, int points) {
    	this.awardText = awardText;
    	this.date = date;
    	this.authorName= authorName;
    	this.points= points;

    }

    public String getAuthorName() {
        return authorName;
    }
    
    public void setAuthorName(String name) {
        authorName = name;
    }
    
    /**
     * Get date
     * @return
     */
    public Date getDate() {
        return date;
    }
    
    public void setDate(Date d) {
        date = d;
    }
    
    /**
     * Get chit text
     * @return
     */
    public String getAwardText() {
        return awardText;
    }

    public void setAwardText(String text) {
    	awardText = text;
    }

	public int getPoints() {
		return points;
	}
	public void setPoints(int points) {
		this.points=points;
	}

	public void addBonus(boolean isLeader) {
		if (isLeader){
			points = points*2;
		}
		
	}


}
